package com.yida.gwj.api.service;

import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.yida.common.core.constant.SecurityConstants;
import com.yida.common.core.constant.ServiceNameConstants;
import com.yida.common.core.domain.R;
import com.yida.gwj.api.domain.GwjMaintenanceFundsBusinessInner;
import com.yida.gwj.api.factory.RemoteGwjExpendFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author hmh
 * @date 2023/06/14
 */
@FeignClient(contextId = "remoteGwjExpendInnerService", value = ServiceNameConstants.GWJ_EXPEND_SERVICE, fallbackFactory = RemoteGwjExpendFallbackFactory.class)
public interface RemoteGwjExpendInnerService {


    @GetMapping("/expend/innerGetInfo/{bizId}")
    public R<GwjMaintenanceFundsBusinessInner> getMaintenanceFundsBusinessInfoByBizId(@PathVariable("bizId") Long bizId, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);

}
